package com.rr.prometheus8081.controller;

import com.rr.prometheus8081.service.TimeActuatorService;
import io.micrometer.core.annotation.Timed;
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;

/**
 * @author RR
 * @date 2021/7/18 15:46
 */
@RestController
public class TimeActuatorController {
    @Autowired
    private TimeActuatorService timeActuatorService;

    @GetMapping("/doOperation")
    public String doOperation(){
        return timeActuatorService.doOperation();
    }
}
